package ooday04;

public class Dog extends Animal implements Swim{
     Dog(String name,int age,String colour){
        super(name,age,colour);
    }
    void eat(){
        System.out.println(colour+"色的"+age+"岁的，名字叫"+name+"的小狗正在吃骨头");
    }
    void lookHome(){
        System.out.println(colour+"色的"+age+"岁的，名字叫"+name+"的小狗正在看家");
    }
    public void swim(){
        System.out.println(colour+"色的"+age+"岁的，名字叫"+name+"的小狗正在游泳");
    }
}
